how to fetch data from graphql API